package com.kitty.game.house.message;

import com.kitty.game.house.model.Farm;
import com.kitty.mina.Modules;
import com.kitty.mina.annotation.MessageMeta;
import com.kitty.mina.message.Message;

import java.util.List;

/**
 * 农田信息返回
 *
 */
@MessageMeta(module = Modules.MSG_HOUSE_REQUEST_FARM_INFO)
public class RespHouseFarmInfo extends Message {

    private short farmNum;
    private List<Farm> farms;
    /**
     *   data.farm_num = pkt:GetShort()
     *   data.count = pkt:GetShort()
     *   for i = 1, data.count do
     *     local info = {}
     *     info.farm_index = pkt:GetChar()
     *     info.class_id = pkt:GetLong()
     *     info.start_time = pkt:GetLong()
     *     info.status = pkt:GetChar()
     *     table.insert(data, info)
     *   end
     */

    public short getFarmNum() {
        return farmNum;
    }

    public void setFarmNum(short farmNum) {
        this.farmNum = farmNum;
    }

    public List<Farm> getFarms() {
        return farms;
    }

    public void setFarms(List<Farm> farms) {
        this.farms = farms;
    }
}
